﻿using UnityEngine;
using System.Collections;

namespace Lost{
	/// <summary>
	/// 浮点锁，适用于积聚影响的锁，如蜘蛛锁
	/// </summary>
	public class FloatLock : Lock {
		[SerializeField] protected float finishPercent = 1f;
		protected override bool CheckKey (LockKey key)
		{
			return (key.CurFinishPercent == finishPercent);
		}
	}
}
